
import 'dart:collection';

import 'package:flutter_graphics_view/src/context/scene_model_context.dart';
import 'package:flutter_graphics_view/src/context/scene_state_context.dart';
import 'package:flutter_graphics_view/src/model/item_model_data.dart';

class SceneModelReader{
  final SceneModelContext sceneModelContext;

  final SceneStateContext sceneStateContext;

  SceneModelReader(this.sceneModelContext, this.sceneStateContext);

  bool itemExist(String itemId){
    return sceneModelContext.itemExists(itemId);
  }

  ItemModelData getItem(String itemId){
    return sceneModelContext.getItem(itemId);
  }

  HashMap<String,ItemModelData> getAllItems(){
    return sceneModelContext.getAllItems();
  }

}